const router = require('koa-router')()
router.prefix('/delivers')

const {
  find,
  findById,
  findHistory,
  create,
} = require('../controllers/delivers')

router.get('/history', findHistory)
router.get('/', find)
router.get('/:id', findById)
router.post('/', create)
// router.patch('/:id', update)

module.exports = router